Replaced cache with window.sessionStorage in order to remember @2x state after browser refresh