Fixed main image bug