fix images bugs