updated build.gradle to reflect imageDir
corrected buildfile error with targetImagePath