Use filename argument instead of image matrix