Fixed a bug where we were giving the wrong UID to the remove pictures
function in the backend.