Can't you give me example is more understandable?
/usr/bin/transferimg.sh "$FILENAME"
/usr/bin/transferimg.sh "/home/user/MyDocs/DCIM/20120925_1.jpg"
scp "$FILENAME" ersanpermana@computer.local:/path/to/your/chosen/dir