Fix all image reallocating functions to keep sRGB color profile data