trying to make image resize automatically