Fix reading front buffer into structs from the image library