adjustments in caching images to take only jpg cache files