change image format in carousel