Remove image api optimize