Added verification of user click not being outside image