Added support for any size

-commented better
-added support for custom height and width