improve hover image position calculation