Removed pragma directives. Added flags to project options.
Added new buttons for auto width and auto height.