Thanx douglife but that method doesnt seem to work when the users display is way bigger than the image and also if i change the screen font size by keeping Ctrl and scrolling my mouse wheel the image also resizes
Ok, so what you need to do is add the attribute for the size of the image, dimensions, and alignment. Let me know if you need the code, I'd rather you figure it out yourself !