keep original uploaded image in case of normalisation
add support for replacing images
rewrite imaging using gm