fix bugs in images