Perform im.getdata check up front