add function to load, resize and rotate