add function for resize image and add launch images