2d.drawImage.zerosource.image

drawImage with zero-sized source rectangle from image throws INDEX_SIZE_ERR