small fix: there is no error when entered incorrect coordinates (out of pixels matrix)