Add Util function for checking screen scale and set program image based on scale. Cleanup.