Truncate image_cache filename to keep it in its database field.

We need to truncate the filename before storing it in the image_cache field to make sure that the whole thing is less than 100 characters long.