Added Optimization
4000 img size
updated fucntions