properly change pic
added tests
see live at bottom of edit page