Added basic read_imagef support