moved remaining image-related functions into de265_image