Implemented auto lightbox transformation. (close #2)