Use the lens cap when the camera is not being used, and if you are changing the lenses, do so quickly. Additionally, if you feel that your images are drastically suffering due to dirt and dust, then give your camera to a professional camera store and pay them to clean your SLR effectively.