Updated dirty sprite engine for compability with the new keyframe system