refactor to actually support 2 images
refactor to actually support 2 images fix after review
refactor to actually support 2 images fix2 after review
Merge pull request #73 from kshileev/2_images

refactor to actually support 2 images