bug fix. the loop will now actually find the biggest picture size