reviewed verstion of pic upload