Reimplement av_fill_image_pointers() using the information stored in