An Approach for Classifying large Scale Images