move image logic to SquareView