512 mb is not enough for any Android handset in present for any version of Android because at present time app need more ram with its unusual updates,, anyway if u want to try custom rom make sure its rooted or root it later then watch and safely delete those internal app that are useless for you ,I think you will get some lag with your camera later but not so sure ,