fix for embedded picture upload