Expand GUI framework to keep sprite's aspect ratio