added ajax for images