Detect and replace 1x1 pixel images

Detect 1x1 pixel images and replace them with the same placeholder
we use when there is an error loading the image.

Move placeholder image definition into a variable in main.js.

Signed-off-by: Jeff Godin <jgodin@tadl.org>