fix dimensions is null when not @isImage