Fixed a bug that would allow last image that was uploaded to be added again.