refactored and fixed spine image sizing