Added hooks

added hooks for image_path and file_path