Removed redundant switch cases for image types