Improved SWDF_clean_image_cache() and added phpDoc