added port, bucket, and image-dir options