Added new function to encapsulate a better way of resizing the project images. Part of #981