updated the image handling

The uppercase extension handling is done