This is generally caused by dust and dirt getting inside the lens. The lenses on most digital cameras are not airtight. When the lens extends outwards it draws in air. If the camera is used or stored in a dusty environment then dust and dirt can find its way into the camera. This would normally require a strip down to clean inside the lens.