img_get_dims + more gui crap