Removed redundancy in image adding process, where default case would never be executed