switch line endings back to unix
jshint cleanup
extend getPixmap API to allow specifying layer index ranges