restores image position