fix images optimization