Set modified date before processing image.

Allows image to save properly with non-nullable modified date column.