add testing for image resizing
clean up temp files