Changes for auto upgrading, also updating preview image