Add a bounds check to writeVideoImageWithRange()

Fixes crash in Jeanne d' Arc, which sends 480x480 for some reason...

-[Unknown]