fixed bug with animation frames per line with non-standard tile size