Two tiled image background fixes.

- don't try to render unready images; they have zero width/height which results
  in an infinte loop
- restore alpha after we're done rendering