add writePictureButton functionality
add writeSoundButton functionality