use ffi constants for image- and font- creation-failure flags