fixing cap jpg issue