Truncate image_cache filename for database field.