append_image() and minor bugfix