correct extension on image