Add functions to return sprite image dimensions

Remove trailing spaces