fix problem with image extension