Added getFrameDimensions and non-member function to generate walking animation