Fix issue where images weren't saving if current_path has no extname