Added support for any alignments of GUI windows
i.e. align to left, right or middle of screen