image allocation functions now pass around an extra userdata pointer
handle case when set_image_allocation_function is called with a NULL argument
fix type of de265_decoder_context
fix image allocation in copy_image
fix type of de265_decoder_context
remove unnecessary casts