Replaced image upload dialog with media library and added edit link for images

I just added the wordpress media library to add/edit images a bit more conveniently.