First main commit, seemingly working resizing, cropping and caching currently