working on resizing images
moved calculated properties to viewmodel.