Added picture upload and resizing functionality