semi working, still not properly resizing images