global hack for triggering the dirty bit when image uploads