app: add gimp_image_estimate_memsize()

to be used to estimate an image's memory size at another precision or
size.