Image dimensions dirty workaround