Called when the select button is clicked
Returns the cell index
Returns the coordinates of the rectangle surrounding the cell as defined by self.center_rect, self.size and self.angle
Creates and return a frame object
Sets a unique index identifier for the cell
p is the size of the reference image (int)
Updating the panel