bug fixing at copy-image-with-format function