refactored and changed import not to resize images anymore