Add missing error checks to ccl_image_new_deprecated()

Fix bug in OCL stub: add specification of image type