If you feel like improving this at all, the first thing I would suggest is to have the obstacles disappear at a negative x position equal to the width of the image. The second thing I would suggest is to not use purely random positioning for the obstacles. As things are at the moment, the game is more luck than skill, specifically luck in how vertical or horizontal the arrangements of obstacles end up being.