force canvas sizes to workaround Windows Firefox bugs