Implement inheritance and fix offset on putImageData
Collision detection