Corrected bugs & added support for center and scale options