Added an API-call to get the current frame for a sprite