add download picture function