adding null check for image paths

prior to this, any attempt to access imagePositions for an undefined
image path would throw an exception, which is bad.
including test images in output
adding simple test for single image