fix images optimization on front