from spf_core import delivery

def take_picture(key):
    print color(35, '\n[*] Take a picture and upload it to the webserver. Will upload a message if it fails.\n')
    deliverymethod = str(raw_input(color(33, '[-] Delivery Method (SMS or HTTP)')))
    command = 'PICT'

    e = delivery(key, command, deliverymethod)
    return e

