#!/bin/bash

	avatar_factory_PATH=${0%%/themes/*}

	destination=$1
	grabber_picture=$2

	if [[ $theme_name = shadow-hq ]]; then
		picture_size=244x244
	else
		picture_size=116x116
	fi

	convert  \
		"$grabber_picture" -thumbnail $picture_size \
		\( +clone -background black -shadow 55x3+3+3 -channel A -evaluate multiply 2 +channel \) \
		+swap +repage -gravity center -geometry -0-2 -composite \
		"$destination"




