return 500 as res code on cmyk images