Added setProjection
Removed width and height
Changes in the code