The problem is the following:
The following code snippet records the keystrokes of various images within the canvas (Actually it is from their positions because withi