forked from: Construct Image from tiles

