allow different commands for file and image open