fix image allocation in copy_image
fix type of de265_decoder_context