allowed for multiple images of the same name, cleaned up code, fixed
size typo