Don't copy image data directly into background

Since the size of the background sprite varies with the size of the
display, TB_SPRITE_FILL may attempt to copy more data than is
available in the source image
Clean up formatting of generated image headers