       canvas.context().globalAlpha = I.alpha
 
     if sprite = I.sprite
-      if sprite.draw? 
+      if sprite.draw?
         sprite.draw(canvas, -sprite.width / 2, -sprite.height / 2)
       else
         warn?("Sprite has no draw method!")

      transform = transform.concat(Matrix.translation(I.spriteOffset.x, I.spriteOffset.y))

    return transform

Drawable.setSizeCallback = (sprite) ->
    scaleY: 1
    zIndex: 0

  if I.sprite?.isString?()
    if I.sprite.indexOf("data:") is 0
      I.sprite = Sprite.fromURL(I.sprite)
    else
      I.sprite = Sprite.loadByName(I.sprite)

  self.bind 'draw.Drawable', (canvas) ->
    if I.alpha? and I.alpha != 1
