allow to use repeat flag for sprites as intended
add some AMD/CommonJS modularity (draft)