Missing cast to array in image reposts