fixed bug with drawing animations with negative or zero width/height