Improved SWDF_get_img_path_info() and added phpDoc