Hashing anything is not a feasible solution, as the regeneration task, in detail Image->regenerateFormattedImages(), needs to know about the arguments an image was created with.