Fixed bug in the application open method that made it open files from
the command line and file browsers without moving to the former selected
file after its sibling images have been opened