Changing image extension to caps