new get-dimensions mixin to get both dimensions of an image