I would do this in `setUpUploadPicture`. Also, I wouldn't base this on a toggle, as that is hard to keep track of. I would give both icons an id that incorporated the resourceType and show the correct one based on that.