refactore image upload task and add one extension you can set for uploading images
set up project for testing groovy with mockito