Created a crop.groovy script to run an all images in db and a function
absPath in Resource.groovy to return absolute path.