Use CGImageGetBitsPerPixel in image cost calculation