Make pic upload work