Working on image scaling and trimming