Image layout library for JavaScript