reset form on back button and resize images taller than window