added find_images() function, fixed missing newlines in output