if ( isset( $options['skip-dupes'] ) ) {
$repo = $image->getRepo();
# XXX: we end up calculating this again when actually uploading. that sucks.
if ( isset( $options['skip-dupes'] ) ) {
$repo = $image->getRepo();
# XXX: we end up calculating this again when actually uploading. that sucks.