added support for sprites with borders; added support for more text alignments