dimensions is null if not image