Remove trailing spaces
Add functions to return sprite image dimensions