Added image magic resize before save