public void setWidth(int width) {
		if(rotation == 90 || rotation == 270){
			if(zoom == 1){
				this.height = (int) (width/zoom);
			}else{
				this.height = (int) (width/zoom)+1;
			}
		}else{
			if(zoom == 1){
				this.width = (int) (width/zoom);
			}else{
				this.width = (int) (width/zoom)+1;
			}
		}
	}