fixes bug in update_landmark_options
adds small helper functions
makes visualize_images work for different images