Functions consolidated into one jQuery function

-drag and drop img upload enabled