Add call to read() to update image dimensions