When i click update button, a blank canvas get drawn instead of updated tilesheet, but on repeatedly tapping it and resizing window randomly it works