Fix cast image offset now that sizes are correct