fix for images opened twice on rotation