Micro-optical devices formed by a dynamic photolithographic approach