added image files support, TODO: unittest for image uploading